//
//  LYVedioLiveController.h
//  LYLiveApp
//
//  Created by QD on 16/8/23.
//  Copyright © 2016年 览益信息科技. All rights reserved.
//

#import "LYLiveCommonController.h"
#import "VHallMoviePlayer.h"
#import "LYVideoButtonView.h"
#import "LYVideoFullScreen.h"
#import "LYVideoNoDataView.h"
#import "LYIntroduceModel.h"
#import "LYIntroduceController.h"
#import "LYCommentController.h"
#import "LYVideoLiveService.h"
#import "LYVideoUnWifiView.h"
#import "LYAudioView.h"
#import "LYDefinitionView.h"
#import "LYArticleInputView.h"
#import "LYVideoBottomView.h"


@class LYCommentModel;

@interface LYVedioLiveController : LYLiveCommonController
@property(nonatomic, assign)NSInteger bufferTimes;      //RTMP观看缓冲时间
@property(nonatomic, strong)NSString *nickName;     //用户昵称    为空默认随机字符串做昵称
@property(nonatomic, strong)NSString *userID;       //用户唯一ID  为空默认使用设备UUID做为唯一ID
@property(nonatomic, strong)NSString *kValue;       //K值        可以为空


@property (strong,nonatomic) VHallMoviePlayer *moviePlayer;
@property (weak, nonatomic) IBOutlet UIView *navView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *navViewTop;
@property (weak, nonatomic) IBOutlet UILabel *videoTitle;
@property (strong, nonatomic) UIView *notifyView;
@property (strong, nonatomic) UILabel *notifyLabel;
@property (assign, nonatomic) BOOL isNotifyExpand;     //公告是否展开
@property (assign, nonatomic) BOOL isMovieViewHidden;  // 顶部view是否隐藏
@property (assign, nonatomic) BOOL isLock;             // 是否锁屏
//@property (assign, nonatomic) BOOL isAudio;            // 是否音频
@property (assign, nonatomic) BOOL isNoVideoData;
@property (assign, nonatomic) BOOL isPlaying;          //播放中
@property (strong, nonatomic) UIScrollView *scrollView;
@property (strong, nonatomic) UIButton *introduceBtn;
@property (strong, nonatomic) UIButton *commentBtn;
@property (strong, nonatomic) UILabel *likeCountLab;
@property (strong, nonatomic) LYVideoButtonView *buttonView;
@property (strong, nonatomic) LYVideoFullScreen *fullOverView;
@property (strong, nonatomic) UIView *finishedView;
@property (strong, nonatomic) UIImageView *finishedImage;
@property (strong, nonatomic) LYVideoNoDataView *noVideoView;
@property (strong, nonatomic) LYAudioView *audioView;
//@property (strong, nonatomic) LYIntroduceModel *introduceModel;
@property (assign, nonatomic) CGFloat notifyLabelHeight;
@property (strong, nonatomic) NSArray *definitionArray;
@property (nonatomic,assign) BOOL isFullScreen;
@property (nonatomic,assign) BOOL isFinishedVideo;
@property (nonatomic,strong) LYCommentController *commentVC;
@property (nonatomic,strong) LYCommentModel *commentModel;
@property (nonatomic,strong) LYIntroduceController *introduceVC;
@property (nonatomic,strong) LYVideoLiveService *videoLiveService;
@property (nonatomic,strong) NSNumber *toChatId;
@property (nonatomic,strong) NSTimer *clickTimer;
//@property (nonatomic,strong) NSTimer *videoTimer;
@property (nonatomic,strong) UIButton *rotateButton;
@property (nonatomic,strong) UIButton *audioButton;
@property (nonatomic,strong) UIView *inputBg;
@property (strong, nonatomic) LYArticleInputView *commentInputView;
@property (assign, nonatomic) NSInteger definition;
@property (strong, nonatomic) LYVideoUnWifiView *unWifiView;
@property (strong, nonatomic) LYDefinitionView *definitionView;
@property (weak, nonatomic) IBOutlet UIButton *likeBtn;
@property (weak, nonatomic) IBOutlet UILabel *likeNumLab;
@property (assign, nonatomic) BOOL inThisPage;
@property (nonatomic,strong) UIActivityIndicatorView *indicator;
@property (nonatomic,assign) BOOL isEnterBack;   //是否进入后台
@property (nonatomic,assign) NSInteger buttonViewType;
@property (nonatomic,strong) UIView *backgroundView;
@property(nonatomic,strong) LYVideoBottomView *videoBottomView;
@property(nonatomic,assign) NSInteger stateMentCountTime;
@property(nonatomic,strong) NSTimer *stateMentTimer;




- (void)videoLiveFinished;
- (void)videoLiveBegin;
@end
